package projetstackoverflow

class Question extends Message {
	
	String title
	int viewsNumber
	
	static hasMany = [answers:Answer, tags:Tag]
	
    static constraints = {
		title(blank:false)
    }
	
	def String toString() {
		return "Question qui a pour titre : "+title;
	}
}
